home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / modemenu.doc < prev    next >
Text File  |  1995-03-31  |  4KB  |  136 lines

  1. (Comp.sys.handhelds) 
  2. Item: 3737 by Simone.Rapisarda at wolf.sublink.org 
  3. Author: [Simone Rapisarda] 
  4.   Subj: How to create MODES-menus 
  5.   Date: Mon Jul 22 1991 
  6.  
  7. Here are some sysevals I found last night (the quoted 
  8. questions are the ones I was asking myself since yesterday). 
  9.  
  10.  > How can I toggle a system flag ? 
  11.   
  12. Try this one: 
  13.  
  14. 3EDA2   toggle system flag (1:Syst Bin) 
  15.  
  16.  > How can I add a menu entry like the ones in the MODES menu 
  17.  > to a normal menu ? 
  18.  
  19. Choose from the list that follow the address of the menu entry  
  20. you want, key it in as a binary then SYSEVAL. 
  21. In level 1 will appear a list containing the menu entry, to 
  22. show and use it just type 1 \->LIST TMENU. 
  23.  
  24. ---------------------------------------- 
  25. 3BB46   MODES menu  (already documented) 
  26. ---------------------------------------- 
  27. Addrs   Specifications 
  28. ---------------------------------------- 
  29. 3E774   menu entry: STD 
  30. 3E7B6   menu entry: FIX 
  31. 3E7E9   menu entry: SCI 
  32. 3E81C   menu entry: ENG 
  33. 3BB5F   menu entry: SYM 
  34. 3BBA6   menu entry: BEEP 
  35. 3EA9E   menu entry: STK 
  36. 3EB1C   menu entry: ARG 
  37. 3EA4D   menu entry: CMD 
  38. 3BBFE   menu entry: CNCT 
  39. 3E84F   menu entry: ML 
  40. 3EBAF   menu entry: CLK 
  41. 3E88F   menu entry: DEG 
  42. 3E8D1   menu entry: RAD 
  43. 3E908   menu entry: GRAD 
  44. 3E94E   menu entry: XYZ 
  45. 3E98A   menu entry: R\<)Z 
  46. 3E9EE   menu entry: R\<)\<) 
  47. 3DB5B   menu entry: HEX 
  48. 3DB9D   menu entry: DEC 
  49. 3DBDF   menu entry: OCT 
  50. 3DC21   menu entry: BIN 
  51. 3EB68   menu entry: FM, 
  52. ---------------------------------------- 
  53.  
  54.  > How can I built myself a menu entry that behaves like the ones in 
  55.  > the MODES menu ? 
  56.  
  57. If the function of that menu entry is to toggle only one system flag  
  58. (like in SYM BEEP CNCT ML FM,) do the following: 
  59. build a list composed by two programs, The first program must contain: 
  60.  
  61.   1)    3ECEE  (External: append check-square when the flag is set) 
  62.      or 3ECD0  (External: append check-square when the flag is clear) 
  63.  
  64.   2)   "LABEL" (String: used for the menu label) 
  65.  
  66.   3)    <XXh>  (System Binary: the system-flag number) 
  67.  
  68. The second program must contain: 
  69.  
  70.   1)    3ED84  (External) 
  71.  
  72.   2)    <XXh>  (System Binary: the system-flag number, same as before) 
  73.  
  74. Now the list contain the menu entry so type 1 \->LIST TMENU 
  75. to show and use it: notice that you can toggle a flag if you have  
  76. the command line too! 
  77.  
  78.  > Yes, it's all beautiful but I have to use up all my CST menu to 
  79.  > do what you told. 
  80.  
  81. Why ?! Just create a dir-like menu entry in your CST menu and so all  
  82. this stuff will take only one label and it will be usable also  
  83. when there is the command line. 
  84.  
  85.  > Are you joking ? 
  86.  
  87. No, just build a list composed by two programs, the first program  
  88. must contain: 
  89.  
  90.   1)     3ED6B     (External) 
  91.  
  92.   2)    "LABEL"    (String: used for the dir-like menu label) 
  93.  
  94. The second program must contain: 
  95.  
  96.   1)     40788     (External: null program) 
  97.  
  98.   2)  { {...}...{...} }  (List: the complete menu) 
  99.  
  100.   3)     40F86     (External) 
  101.  
  102.   4)     1A086     (External) 
  103.  
  104. You can also do it in another way: just assign this second program  
  105. to a key. 
  106. Another thing: if you want only a dir-like menu entry you can use  
  107. the first program as a normal menu label. 
  108.  
  109. N.B. Everywhere you see 'program' you must read 'program w/o the 
  110.      user program delimiters (\<< and \>>)'. So to build these 
  111.      programs use OUT\-> and \->PRG from the great HACKIT library. 
  112.  
  113. During this trip inside the menus my 48 never asked me if I wanted  
  114. her to try to recover memory. But maybe your 48 will. 
  115. So be ready and archive your memory! 
  116. I take no responsibility for all the odd things that can happen  
  117. to your 48; if you don't like danger just don't do it! 
  118. I warned you! 
  119.  
  120. If you have some questions or comments about what I wrote, I will be  
  121. glad to answer. If you like what I found I really would like to know! 
  122.  
  123. Finally I would like to thank those who started this funny game: 
  124. HP, Bill, Rick, Derek, Jan, Jim, Paul, Jake and many many others... 
  125.  
  126. Happy MENUing! 
  127.  
  128.                                               RAP 
  129.  
  130.   
  131. --   
  132.  WolfNet BBS Pisa (Italy) Tel. +39-50-589050 300-14.4K Baud Matrix 2:332/602.0 
  133.  Simone Rapisarda - via FidoNet node 2:33/800 
  134.  UUCP: ...!gear!wolf!Simone.Rapisarda 
  135.  ARPA: Simone.Rapisarda@wolf.sublink.org 
  136.